package controller

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"net/http"
)

func TestHandler(c *gin.Context) {
	err := c.AbortWithError(201, fmt.Errorf("test"))
	panic(err)
	c.JSON(http.StatusOK, gin.H{
		"msg": "test",
	})
}
